
import pytest,os
from selenium import webdriver

import time

@pytest.fixture(scope='function')
def getlatest():
    driver=None
    if os.getenv('wabire') == 'chorme':
        driver = webdriver.Chrome()
    if os.getenv('wabire') == 'eage':
        driver = webdriver.Edge()
    if os.getenv('wabire') == 'firefox':
        driver = webdriver.Firefox()
    
    yield driver
    time.sleep(5)
    driver.quit()
